﻿import welcome from '../src/pages/Welcome';

export default [
  //{ path: '/user', layout: false, routes: [{ path: '/user/login', component: './User/Login' }] },源码
  //备份
  {
    path: '/user', layout: false, routes: [
      {path: 'login', name:'登录',component: './User/Login'},
      {path: 'register',name:'注册', component: './User/Register'}
    ]
  },
  {path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome'},

  // { path: '/', redirect: '/add_chart' },

  //{path: '/account/center',component: './AddScore'},
  { path: '/add_chart', name: '智能分析', icon: 'barChart', component: './AddChart' },
  { path: '/add_chart_async', name: '智能分析（异步）', icon: 'barChart', component: './AddChartAsync' },
  { path: '/my_chart', name: '我的图表', icon: 'pieChart', component: './MyChart' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      {path: '/admin/user-manage', name: '用户管理', icon: 'smile', component: './Admin/UserManage'},
      {component: './404'},
    ],
  },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
